function! api#gutentags#init() abort
    let g:gutentags_define_advanced_commands = 1
    let g:gutentags_ctags_executable = 'ctags'
    let g:gutentags_ctags_extra_args = []
    let g:gutentags_ctags_tagfile = 'tags'
    let g:gutentags_ctags_exclude = []
    let g:gutentags_file_list_command = {
                \ 'markers': {
                \ '.git': 'git ls-files',
                \ '.hg': 'hg files',
                \ },
                \ }
    if !exists('g:loaded_gutentags')
        try
            packadd vim-gutentags
        catch /.*/
            echoerr v:exception
        endtry
    endif
    if exists('g:loaded_gutentags') && g:loaded_gutentags
    endif
endfunction
